package com.evony.common.server.events 
{
    import com.evony.common.*;
    
    public class EquipmentResearchCompleteUpdate extends com.evony.common.BaseBean
    {
        public function EquipmentResearchCompleteUpdate(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.castleId != null) 
            {
                this.castleId = arg2.castleId;
            }
            if (arg2.level != null) 
            {
                this.level = arg2.level;
            }
            if (arg2.typeId != null) 
            {
                this.typeId = arg2.typeId;
            }
            return;
        }

        public function copyTo(arg1:com.evony.common.server.events.EquipmentResearchCompleteUpdate):void
        {
            arg1.castleId = this.castleId;
            arg1.level = this.level;
            arg1.typeId = this.typeId;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.castleId = this.castleId;
            loc1.level = this.level;
            loc1.typeId = this.typeId;
            return loc1;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- EquipmentResearchCompleteUpdate ----\n";
            loc2 = loc2 + (arg1 + "castleId = " + this.castleId + "\n");
            loc2 = loc2 + (arg1 + "level = " + this.level + "\n");
            loc2 = loc2 + (arg1 + "typeId = " + this.typeId + "\n");
            return loc2;
        }

        public var castleId:int;

        public var level:int;

        public var typeId:int;
    }
}
